ServerEvents.recipes((event) => {
    //高炉燃料口，静态状态消耗配方
    event.recipes.custommachinery.custom_machine("eou:blast_furnace/fuel_port", 20)
        .hide()
        .requireFluidPerTick(Fluid.lava(1), "heat")
        .resetOnError()
    event.recipes.custommachinery.custom_machine("eou:blast_furnace/fuel_port", 20)
        .priority(1)
        .hide()
        .requireFunctionEachTick((ctx) => {
            if (ctx.getMachine().removeFluidFromTank("heat", 100, false))
                return Result.success()
            return Result.error();
        })
        .requireFluidPerTick(Fluid.lava(10), "heat")
        .resetOnError()
    event.recipes.custommachinery.custom_machine("eou:blast_furnace/fuel_port", 20)
        .priority(2)
        .hide()
        .requireFunctionEachTick((ctx) => {
            if (ctx.getMachine().removeFluidFromTank("heat", 1000, false))
                return Result.success()
            return Result.error();
        })
        .requireFluidPerTick(Fluid.lava(50), "heat")
        .resetOnError()
    //当存在燃料的时候，烧对应的燃料产生热量
    event.recipes.custommachinery.custom_machine("eou:blast_furnace/fuel_port", 20)
        .priority(10)
        .hide()
        .requireFunctionEachTick((ctx) => {
            ctx.machine.addFluidToTank("heat", Fluid.lava(50), false)
            return Result.success()
        })
        .requireFuel(20)
        .resetOnError()
})